package com.restaurant.application.genshanguser;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.UID;

/**
 * @author Administrator
 */
public class GenShangUserDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(GenShangUser.class, "GenShangUserData");
        desc.nextBean("GenShangUserData")
                .add("id", String.class)
                .add("number", String.class)
                .add("createTime", Long.class)
                .add("modifyTime", Long.class)
                .add("avatarUrl", String.class)
                .add("nickName", String.class)
                .add("realName", String.class)
                .add("password", String.class)
                .add("gender", String.class)
                .add("phone", String.class)
                .add("state", String.class)
                .add("wideDesktop", UID.class)
        ;

        desc.addUiFunction("save", "GenShangUserData");
        desc.addUiFunction("cancel", null);

        desc.run("./");
    }
}
